<?php
namespace app\common\validate;

use think\Validate;

class SiteValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'company_name|公司名称' => 'require',
        'site_name|店铺名称'    => 'require',
        'site_tel|店铺电话'     => 'require',
        'site_no|营业执照号'     => 'require',
    ];
    //验证场景
    protected $scene = [
        'info' => ['site_name']
    ];
}